<template>
    <h1>这是Vuex页面</h1>
    <p>count:{{ count }}</p>
    <p>tenTimes:{{ tenTimes }}</p>
    


    <h1>Map xx</h1>
    <h2>全局</h2>
    <p>count:{{ count }}</p>

    <P>tenTimes:{{ tenTimes }}</P>
    <p>countAA:{{ countAA }}</p>
    <p>mutations</p>
    <button @click="emitIncrementNut">触发emitIncrementNut</button>
</template>

<script>
import {mapState,mapGetters} from "vuex"
    export default{
       
        computed:{
        //     count(){
        //         return this.$store.state.count
        //     },
        //     tenTimes(){
        //     return this.$store.getters.tenTimes
        // }
        ...mapState(['count']),
        ...mapGetters(['tenTimes','countAA'])

        }
        
    }
</script>